//
//  WXGScrollItem.m
//  ScrollView-task
//
//  Created by Mac on 15/8/11.
//  Copyright (c) 2015年 BV-3G. All rights reserved.
//

#import "WXGScrollItem.h"

@implementation WXGScrollItem
{

    UIImageView *imageview;
}
- (id)initWithFrame:(CGRect)frame {

    if (self = [super initWithFrame:frame]) {
        
        imageview = [[UIImageView alloc] initWithFrame:self.bounds];
        
        imageview.contentMode = UIViewContentModeScaleAspectFit;
        
        [self addSubview:imageview];
        
        
        
    }

    return self;
}


- (void)setModel:(HomeModel *)model {
    
    _model = model;

    [imageview setImageWithURL:[NSURL URLWithString:model.img]];
    
}



@end
